﻿@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_LoginLayout.cshtml";
}

<div class="loginpanel">
    <div class="loginpanelinner">
        <div class="logo animate0 bounceIn">
            <h2 style="color: white">BMS</h2>
        </div>
        <form id="login" action="#" method="post">
            <div class="inputwrapper login-alert">
                <div class="alert alert-error">
                    Sai tên đăng nhập hoặc mật khẩu
                </div>
            </div>
            <div class="inputwrapper animate1 bounceIn">
                <input type="text" name="username" id="username" placeholder="Tên đăng nhập" />
            </div>
            <div class="inputwrapper animate2 bounceIn">
                <input type="password" name="password" id="password" placeholder="Mật khẩu" />
            </div>
            <div class="inputwrapper animate3 bounceIn">
                <button name="submit" >Đăng nhập</button>
            </div>

        </form>
    </div>
    <!--loginpanelinner-->
</div>
<!--loginpanel-->
<script type="text/javascript">
    $(document).ready(function () {
        $('#login').submit(function () {
            var u = $('#username').val();
            var p = $('#password').val();
            if (u == '' || p == '') {
                $('.login-alert').fadeIn();
                return false;
            }
        });
    });
</script>
